package com.jyxd.web.data.czform;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "table_blood_glucose_mon")
@Data
@ApiModel("血糖单通用表")
public class BloodGlucoseMon {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    @ApiModelProperty("内容code")
    @Column(name = "code")
    private String code;

    @ApiModelProperty("选项值")
    @Column(name = "value")
    private String value;

    @ApiModelProperty("患者id")
    @Column(name = "patientId")
    private String patientId;

    @ApiModelProperty("操作人")
    @Column(name = "operator_code")
    private String operatorCode;

    @ApiModelProperty("评分类型")
    @Column(name = "type")
    private String type;

    @ApiModelProperty("行id")
    @Column(name = "row_id")
    private String rowId;

    @ApiModelProperty("创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty("状态")
    @Column(name = "status")
    private Integer status;
}
